package com.sikiedu.logindemo.dao;

import com.sikiedu.logindemo.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Insert("insert into user(username,password,email) values (#{username},#{password},#{email})")
    public void save(User user);

    @Select("select * from user where email = #{email} and password = #{password}")
    User findUser(User user);
}
